package com.huoyun.userAdmin.model;

import java.util.Date;

import com.huoyun.user.bean.User;
import com.huoyun.userAdmin.bean.UserDetail;

public class UserDetailModel extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5781062398454929804L;
	private int userId;
	private String telephone;
	private String province;
	private String city;
	private String town;
	private String address;
	private String gender;
 	private String qq;
	private Date createTime;
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getTown() {
		return town;
	}
	public void setTown(String town) {
		this.town = town;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public UserDetail toUserBean()
	{
		UserDetail userBean = new UserDetail();
		userBean.setAddress(getAddress());
		return userBean;
	}
}
